import javax.swing.JOptionPane;

public class DateValidator
{
   public static void main(String[] args)
   {
   String mydate = JOptionPane.showInputDialog(
         "Enter a date in the format of mm/dd/yyyy");
   
   DateCheck datecheck = new DateCheck(mydate);
   if(datecheck.isValidDate())
   {
    JOptionPane.showMessageDialog(null, "Correct!");
   }
   else
   {
      JOptionPane.showMessageDialog(null, "Incorrect!");
   }

   System.exit(0);
   }
}
